package com.atguigu.guli.service.sms.controller.api;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.sms.service.SMSService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController

@RequestMapping("/api/sms/")
public class ApiSMSController {
    @Autowired
    SMSService smsService;
    @GetMapping("/sendMsg/{mobile}")
    public R sendMsg(@PathVariable String mobile){
        smsService.sendMsg(mobile);
        return R.ok();
    }
}
